'use strict'
let Koa = require('koa'),
    body = require('koa-bodyparser'),
    static_fn = require('koa-static'),
    templating = require('./templating'),
    controllers = require('./controllers'),
    app = new Koa();

app.use(body())
app.use(static_fn(__dirname + '/static'))
app.use(templating)
app.use(controllers())



app.listen(8888)
console.log('http://127.0.0.1:8888');